package scsc.web.xzgl.building.graph.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import scsc.web.system.AppActionForm;
import scsc.web.xzgl.building.graph.data.WebPageData;
import scsc.web.xzgl.building.graph.data.WebPageUnitMapData;
import java.util.*;

public class GraphForm extends AppActionForm {

	private WebPageData data;
	private WebPageData conditionData;
	private WebPageUnitMapData unitData;
	private ArrayList unitList;
	private ArrayList unitTypeList;
	private Integer unitTypeSize;
	private String selUnitType;

	public GraphForm() {
		super();
		data = new WebPageData();
		conditionData = new WebPageData();
		unitData=new WebPageUnitMapData();
		unitList=new ArrayList();
		unitTypeList=new ArrayList();
		unitTypeSize=new Integer(0);
	}

	public void reset(ActionMapping mapping, HttpServletRequest request) {
		super.reset(mapping, request);
		data.reset();
		conditionData.reset();
		unitData.reset();
		unitList=null;
		unitTypeList=null;
		unitTypeSize=new Integer(0);
	}

	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();
		return errors;
	}

	public WebPageData getConditionData() {
		return conditionData;
	}

	public void setConditionData(WebPageData conditionData) {
		this.conditionData = conditionData;
	}

	public WebPageData getData() {
		return data;
	}

	public void setData(WebPageData data) {
		this.data = data;
	}

	public WebPageUnitMapData getUnitData() {
		return unitData;
	}

	public void setUnitData(WebPageUnitMapData unitData) {
		this.unitData = unitData;
	}

	public ArrayList getUnitList() {
		return unitList;
	}

	public void setUnitList(ArrayList unitList) {
		this.unitList = unitList;
	}

	public ArrayList getUnitTypeList() {
		return unitTypeList;
	}

	public void setUnitTypeList(ArrayList unitTypeList) {
		this.unitTypeList = unitTypeList;
	}

	public Integer getUnitTypeSize() {
		return unitTypeSize;
	}

	public void setUnitTypeSize(Integer unitTypeSize) {
		this.unitTypeSize = unitTypeSize;
	}

	public String getSelUnitType() {
		return selUnitType;
	}

	public void setSelUnitType(String selUnitType) {
		this.selUnitType = selUnitType;
	}

	
	
}
